# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=aixlog
pkgver=1.5.0
pkgrel=2
pkgdesc="Header-only C++ logging library"
url="https://github.com/badaix/aixlog"
arch="noarch"
license="MIT"
makedepends="cmake samurai"
options="!check" # not test
source="https://github.com/badaix/aixlog/archive/v$pkgver/aixlog-v$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_EXAMPLE=OFF
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
28556feac1fa804b8a4dc047471e0a6d4c4fb7d81487810d55b09dd1be878246b8bf9f2097b76a980284318823c287bd0a93dd7a3124425a1ea9aced757152b6  aixlog-v1.5.0.tar.gz
"
